//
// MaFenetre.hpp for  in /home/goldbe_y//cpp/plazza-2014-bramar_g/Qt
//
// Made by yoni goldberg
// Login   <goldbe_y@epitech.net>
//
// Started on  Sun Apr 17 16:36:55 2011 yoni goldberg
// Last update Wed May 11 05:17:48 2011 leo faucon
//

#ifndef __MAFENETRE_H__
# define __MAFENETRE_H__

#include <QList>
#include <QApplication>
#include <QLineEdit>
#include <QLabel>
#include <QWidget>
#include <QGridLayout>
#include <QPushButton>
#include <QMessageBox>
#include <QString>
#include <QTableWidget>
#include <QHeaderView>
#include <QFileDialog>
#include <QFrame>
#include <QHBoxLayout>

#include "Maths.hpp"
#include "Parse.hpp"

class MaFenetre : public QWidget
{
  Q_OBJECT;
public:
  MaFenetre(QApplication &app);

private:
  void		Place(QApplication &app);
  void		initTable_prop();

  QLabel		*Bienvenue;
  QLabel		*Consigne;
  QList<QLabel *>	value;
  QList<QLabel *>	type;

  QTableWidgetItem	*item;
  QTableWidget		*table;

  QGridLayout		*layout;
  QPushButton		*Quit;
  QPushButton		*calculer;
  QPushButton		*charger;
  QPushButton		*graph;

  Parse		*Parseur;

public slots:
  void		calc();
  void		fct_table();
  void		fct_graph();
  void		fct_modif(int, int);
};

static const std::string tab[12] =
  {
    "Moyenne arithmetique :",
    "Moyenne quadratique :",
    "Moyenne geometrique :",
    "Moyenne harmonique :",
    "Mediane :",
    "Mode :",
    "Variance :",
    "Ecart-type :",
    "Ecart moyen :",
    "Ecart median :",
    "Premier Quartan",
    "Troisieme Quartant"
  };

#endif /* !__MAFENETRE_H__ */
